package com.soft3.yxq.generator.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author yxq
 * @since 2024-12-20
 */
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("昵称")
    private String userNickname;

    @ApiModelProperty("密码")
    private String userPassword;

    @ApiModelProperty("姓名")
    private String userRealname;

    @ApiModelProperty("性别")
    private Boolean userGender;

    @ApiModelProperty("出生日期")
    private LocalDate userBirthday;

    @ApiModelProperty("所在地地址")
    private String userAddress;

    @ApiModelProperty("家乡")
    private String userHomeplace;

    @ApiModelProperty("用户头像")
    private String userProfilePictureSrc;

    @ApiModelProperty("删除标识(1删除 0未删除）")
    private Boolean delFlag;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserRealname() {
        return userRealname;
    }

    public void setUserRealname(String userRealname) {
        this.userRealname = userRealname;
    }

    public Boolean getUserGender() {
        return userGender;
    }

    public void setUserGender(Boolean userGender) {
        this.userGender = userGender;
    }

    public LocalDate getUserBirthday() {
        return userBirthday;
    }

    public void setUserBirthday(LocalDate userBirthday) {
        this.userBirthday = userBirthday;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserHomeplace() {
        return userHomeplace;
    }

    public void setUserHomeplace(String userHomeplace) {
        this.userHomeplace = userHomeplace;
    }

    public String getUserProfilePictureSrc() {
        return userProfilePictureSrc;
    }

    public void setUserProfilePictureSrc(String userProfilePictureSrc) {
        this.userProfilePictureSrc = userProfilePictureSrc;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "User{" +
            "userId = " + userId +
            ", userName = " + userName +
            ", userNickname = " + userNickname +
            ", userPassword = " + userPassword +
            ", userRealname = " + userRealname +
            ", userGender = " + userGender +
            ", userBirthday = " + userBirthday +
            ", userAddress = " + userAddress +
            ", userHomeplace = " + userHomeplace +
            ", userProfilePictureSrc = " + userProfilePictureSrc +
            ", delFlag = " + delFlag +
        "}";
    }
}
